package com.rz.paas.baselib.netRequest.convert;

import com.google.gson.Gson;

import java.lang.reflect.Type;

public class JsonConvert implements Convert {
    @Override
    public Object convert(String response, Type type) {
       return new Gson().fromJson(response, type);

    }

    @Override
    public Object convert(String response, Class clazz) {
        return new Gson().fromJson(response, clazz);

    }
}
